package extensions.packet;

import java.io.IOException;

import extensions.romario.packet.Auth;
import extensions.romario.packet.Packets;

public class AuthInfoPacket extends ServerPacket {
	private Auth _auth;
	private String _msg;

	public AuthInfoPacket(short id) {
		super(Packets.PACKET_AUTH_INFO);
	}

	@Override
	public void readContent() throws IOException {
		_auth = Auth.get(readByte());
		_msg = readString();
	}

	@Override
	protected void writeContent() throws IOException {

	}

	@Override
	public void runContent() {
		switch (_auth) {
		case Kick:
			getClient().disconnect(_msg);
			break;
		case Login:

			break;
		}
		
		

	}

}
